/////precompiled////////
#include "precompiled.h"
////////////////////////


#include "prs_FrmParaEditStyle.h"
using namespace prs;

// TRuleFrmParaEditStyle //////////////////////////////////////////////////////

//
TRuleFrmParaEditStyle::TRuleFrmParaEditStyle(
  snt::text::TContext &Context,
  svl::TVariant &VParentNode,
  TRuleFrmStyleState &RStyleState
) 
:vParentNode(VParentNode)
,rStyleState(RStyleState)
{
  snt::TReturn         Return;
  snt::TFVoid          F;
  snt::text::TSequence T(Context);
  snt::text::TKeyword K(Context);
  prs::TFuncNewNodeIntoAttrOldChildren FNewNode;

  this->Name(GetClassName()).Local(vParentNode)
  | K.New("paraEdit") & FNewNode.New(VParentNode,TNodeFrmParaEditStyle()) & T.New("(") & A.New()
  ;
  
  A.Name(GetClassName() + "[A]")
  | T.New("normal") & F.New(this,&TRuleFrmParaEditStyle::FNormal) & rStyleState.New() & A.New()
/**************
  | T.New("paraNormal")   & F.New(this,&TRuleFrmParaEditStyle::FParaNormal)   & rStyleState.New() & A.New()
  | T.New("paraSelected") & F.New(this,&TRuleFrmParaEditStyle::FParaSelected) & rStyleState.New() & A.New()
  | T.New("paraFocused")  & F.New(this,&TRuleFrmParaEditStyle::FParaFocused)  & rStyleState.New() & A.New()

  | T.New("paraLineNormal")   & F.New(this,&TRuleFrmParaEditStyle::FParaLineNormal)   & rStyleState.New() & A.New()
  | T.New("paraLineSelected") & F.New(this,&TRuleFrmParaEditStyle::FParaLineSelected) & rStyleState.New() & A.New()
  | T.New("paraLineFocused")  & F.New(this,&TRuleFrmParaEditStyle::FParaLineFocused)  & rStyleState.New() & A.New()
*****************/
  | T.New(")") & Return.New()
  ;

  //svl::TMessageModal(GetClassName() << "\r\n" << GetGraphInfo(""));
}
